//
//  YLImageShowCell.swift
//  test
//
//  Created by lyl on 2020/7/12.
//  Copyright © 2020年 lyl. All rights reserved.
//

import UIKit

class YLImageShowCell: UICollectionViewCell {
    var imageView : UIImageView!
    
    override init(frame: CGRect) {
        super.init(frame: frame)
        
        imageView = UIImageView(frame:CGRect(x: 0, y: 0, width: (kCardWidth-contentMargin)/2, height: (kCardWidth-contentMargin)/2))
        imageView.clipsToBounds = true
        imageView.contentMode = .scaleAspectFill
        self.contentView.addSubview(imageView)
    }
    
    required init?(coder aDecoder: NSCoder) {
        fatalError("init(coder:) has not been implemented")
    }
}
